import { defineStore } from "pinia";
import { ref, reactive } from "vue";

export const useEquipmentStore = defineStore("equipment", () => {
  // 定义state内容
  let activeTab = ref("shape");

  let activeNameStore = ref("");

  let primitivesDataStore = ref([]);

  let newPrimitivesDataStore = ref({});

  let newPrimitivesDataStoreMessage = ref(false);

  let newNozzleDataStore = ref({});
  let newNozzleDataStoreMessage = ref(false);

  let shapesDataCalStore = ref([]);
  let computedCount = ref(0);

  let UpgradeEquipCount = ref(0);

  let computedCaCount = ref(false)

  let showList = ref({})


  let nozzleName = ref('')
  return {
    nozzleName,
    showList,
    computedCaCount,
    UpgradeEquipCount,
    computedCount,
    shapesDataCalStore,
    activeTab,
    activeNameStore,
    primitivesDataStore,
    newPrimitivesDataStore,
    newPrimitivesDataStoreMessage,
    newNozzleDataStore,
    newNozzleDataStoreMessage,
  };
});
